package com.cssl.mapper;

import com.cssl.domain.DtsCoupon;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface DtsCouponMapper {
    List<DtsCoupon> getAllInfo();

    List<DtsCoupon> homePageCoupon(Integer loginIdAsInt);

    Integer getCouponCount(Integer userId);

    List<Map> getSuitable(@Param("goodsPrice") Double finalGoodsPrice, @Param("userId") Integer userId);

    List<org.hibernate.mapping.Map> getUserCoupon(Integer login);

    DtsCoupon getCoupOnById(@Param("coupOnId") Integer couponId, @Param("userId")Integer userId);

}
